package com.thread.threadfirst.encrypt;

public class ByteToIntTest {

    public static void main(String[] args) {
        byte[] a = new byte[10];
        a[0]= -127;
        System.out.println(a[0]);
        int c = a[0]&0xff;
        System.out.println(c);
        /*
        输出：
        -127
        129
        */
    }
}
